package com.szmg.auth.service;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.szmg.auth.dao.UserDao;
import com.szmg.auth.model.User;


@Service("userService")
public class UserService {

	@Resource(name="userDao")
	private UserDao userDao;
	
	

	public List<User> listUser(int start,int size,User user){
		return userDao.findUser(start, size,user);
	}
	 
	public void deleteUserById(int id){
		userDao.deleteUserById(id);
	}

	public void addUser(User user){
		userDao.addUser(user);
	}
	

	public User findUserById(int userid){
		return userDao.findUserById(userid);
	}
	
	
}
